home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10865 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.primenet.com!not-for-mail
  2. From: kj7bg@primenet.com (Bob White)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Namespaces
  5. Date: 11 Mar 1996 09:07:01 -0700
  6. Organization: Primenet Services for the Internet
  7. Sender: root@primenet.com
  8. Message-ID: <4i1j35$6ot@nnrp1.news.primenet.com>
  9. References: <4hrlim$4b3@newsgate.dircon.co.uk>
  10. X-Posted-By: ip161.boi.primenet.com
  11. X-Newsreader: WinVN 0.99.7
  12. MIME-Version: 1.0
  13. Content-Type: Text/Plain; charset=US-ASCII
  14.  
  15. You should be able to define a B by:
  16.     A::B        xyz;
  17. or
  18.     using namespace A;
  19.     B        xyz;
  20. Hopefully, that helps.
  21.         Bob
  22.  
  23. In article <4hrlim$4b3@newsgate.dircon.co.uk>, gillesp@dircon.co.uk says...
  24. >
  25. >I've just tried to incorporate namespaces into my VC4 project
  26. >and am having some problems.
  27. >
  28. >If I have the following in a header file....
  29. >
  30. >namespace A
  31. >{
  32. >class B
  33. >{
  34. >public:
  35. >  B();  
  36. >};
  37. >}
  38. >
  39. >.. what should my cpp file look like?
  40. >
  41. >There seem to be a number of different ways to skin the cat all of
  42. >which, so far, have conflicted with MFC serialization.
  43. >
  44. >If you can help please e-mail me.
  45. >
  46. >Rob.
  47. >
  48.  
  49.